package com.Event {

	public class SCWindowEvent extends TEvent {
		public static const CLOSE:String = 'close_window';
		public static const OPEN:String = 'open_window';
		public static const TOGGLE:String = 'toggle_window';
		public static const RESIZE:String = 'resize_window';
		private var _windowId:uint = 0;

		/**
		 * 窗口的id
		 */
		public function get windowId():uint {
			return _windowId;
		}
		private var _data:*;

		public function get data():* {
			return _data;
		}

		public function SCWindowEvent(type:String, bubbles:Boolean = true, cancelable:Boolean = true, windowId:uint = 0, data:* = null){
			super(type, bubbles, cancelable);
			_windowId = windowId;
			_data = data;
		}
	}
}